package logic

import (
	"context"
	"dataservice/internal/data"
	"gitee.com/jmdvirus/jkgo/jk/jklog"

	"dataservice/internal/svc"
	"dataservice/internal/types"

	"github.com/tal-tech/go-zero/core/logx"
)

type ZhongChengYaoNamesLogic struct {
	logx.Logger
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewZhongChengYaoNamesLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ZhongChengYaoNamesLogic {
	return &ZhongChengYaoNamesLogic{
		Logger: logx.WithContext(ctx),
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (l *ZhongChengYaoNamesLogic) ZhongChengYaoNames(req *types.ZhongChengYaoNamesQuery) (resp *types.ZhongChengYaoNames, err error) {
	// todo: add your logic here and delete this line
	jklog.L().Infoln("get names")
	resp = data.GetZhongChengYaoNames(*req)
	return resp, nil
}
